Pre fill form fields in <SignIn/> and <SignUp/> - #1701
Conversation
🦋 Changeset detectedLatest commit: 775100b The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
!snapshot |
|
Hey @desiprisg - the snapshot version command generated the following package versions:
Tip: use the snippet copy button below to quickly install the required packages. # @clerk/backend
npm i @clerk/backend@0.29.1-snapshot.10bf647# @clerk/chrome-extension
npm i @clerk/chrome-extension@0.4.0-snapshot.10bf647# @clerk/clerk-js
npm i @clerk/clerk-js@4.58.0-snapshot.10bf647# @clerk/clerk-expo
npm i @clerk/clerk-expo@0.19.2-snapshot.10bf647# @clerk/fastify
npm i @clerk/fastify@0.6.7-snapshot.10bf647# gatsby-plugin-clerk
npm i gatsby-plugin-clerk@4.4.8-snapshot.10bf647# @clerk/localizations
npm i @clerk/localizations@1.26.0-snapshot.10bf647# @clerk/nextjs
npm i @clerk/nextjs@4.24.0-snapshot.10bf647# @clerk/clerk-react
npm i @clerk/clerk-react@4.25.0-snapshot.10bf647# @clerk/remix
npm i @clerk/remix@2.10.3-snapshot.10bf647# @clerk/clerk-sdk-node
npm i @clerk/clerk-sdk-node@4.12.6-snapshot.10bf647# @clerk/shared
npm i @clerk/shared@0.22.1-snapshot.10bf647# @clerk/types
npm i @clerk/types@3.52.0-snapshot.10bf647 |
panteliselef
left a comment
There was a problem hiding this comment.
Minor comments, but looks good 🎉
anagstef
left a comment
There was a problem hiding this comment.
Good job! Added some questions!
4f7d454 to
7be7a29
Compare
6f4e7ec to
203e007
Compare
SokratisVidros
left a comment
There was a problem hiding this comment.
@desiprisg looking good.
Could you please add unit tests for SignInStart and SignUpStart new behavior?
64bea6c to
abe1e07
Compare
feat(types): Remove web3WalletAddress from SignUpInitialValues chore(repo): Changeset feat(clerk-js): Add initial values to SignUpContinue chore(clerk-js): Address PR comments chore(clerk-js): Avoid initialValues optional chaining feat(clerk-js): Include initialValues from query params in sign in/up context feat(clerk-js,clerk-react,types): Add initialValues support to redirectToSignIn/Up methods feat(clerk-react): Add initialValues to <RedirectToSignIn/> and <RedirectToSignUp/> fix(clerk-js): Use router queryString for initialValues chore(types): Remove unused RedirectToProps type refactor(clerk-js): Extract and reuse query param initial value logic fix(clerk-js): Prioritize initial values from query params fix(clerk-react): Fix initialValues type for <RedirectToSignUp/>
abe1e07 to
775100b
Compare
|
This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Type of change
Packages affected
@clerk/clerk-js@clerk/clerk-react@clerk/nextjs@clerk/remix@clerk/types@clerk/themes@clerk/localizations@clerk/clerk-expo@clerk/backend@clerk/clerk-sdk-node@clerk/shared@clerk/fastify@clerk/chrome-extensiongatsby-plugin-clerkbuild/tooling/choreDescription
npm testruns as expected.npm run buildruns as expected.This PR implements the functionality of prefilling specific input fields of
<SignIn/>and<SignUp/>with theinitialValuesprop.The switching mechanism in
<SignIn/>is smart, meaning that if you switch from email to phone, the phone number will be prefilled with theinitialValues.phoneNumbervalue initially.Screen.Recording.2023-09-12.at.12.09.18.mov
Screen.Recording.2023-09-12.at.12.08.36.mov
Screen.Recording.2023-09-12.at.12.07.48.mov